// src/components/ThemeToggle.jsx
export default function ThemeToggle({ darkMode, setDarkMode }) {
  return (
    <div className="theme-toggle">
      <button 
        onClick={() => setDarkMode(!darkMode)}
        className="theme-button"
      >
        {darkMode ? '🌞 亮色模式' : '🌙 暗黑模式'}
      </button>
    </div>
  );
}